home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 43 / Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso / -serious- / misc / gethelp / source / gui.h < prev    next >
C/C++ Source or Header  |  1999-06-14  |  2KB  |  69 lines

  1. /*************************************************************/
  2. /* Includes and other common stuff for the MUI demo programs */
  3. /*************************************************************/
  4.  
  5. /* MUI */
  6. #include <libraries/mui.h>
  7.  
  8. /* System */
  9. #include <dos/dos.h>
  10. #include <graphics/gfxmacros.h>
  11. #include <workbench/workbench.h>
  12. #include <exec/memory.h>
  13. #include <exec/types.h>
  14.  
  15. /* Prototypes */
  16. #include <clib/alib_protos.h>
  17. #include <clib/exec_protos.h>
  18. #include <clib/dos_protos.h>
  19. #include <clib/icon_protos.h>
  20. #include <clib/graphics_protos.h>
  21. #include <clib/intuition_protos.h>
  22. #include <clib/gadtools_protos.h>
  23. #include <clib/utility_protos.h>
  24. #include <clib/asl_protos.h>
  25. #include <clib/muimaster_protos.h>
  26.  
  27. /* ANSI C */
  28. #include <stdlib.h>
  29. #include <string.h>
  30. #include <stdio.h>
  31.  
  32. /* Libraries */
  33.  
  34. extern struct Library *SysBase,*IntuitionBase,*UtilityBase,*GfxBase,*DOSBase,*IconBase;
  35.  
  36. /*************************/
  37. /* Interface             */
  38. /*************************/
  39.  
  40. static struct ObjApp {
  41.       APTR app;
  42.       APTR window;
  43.       APTR label1;
  44.       APTR checkmark1;
  45.       APTR label2;
  46.       APTR checkmark2;
  47.       APTR label3;
  48.       APTR string1;
  49.       APTR simplebutton1;
  50.       APTR simplebutton2;
  51. };
  52.  
  53. #define GO_SEARCH   2
  54. #define GO_QUIT     1
  55. #define GO_RUNNING  0
  56.  
  57. /************************/
  58. /* function prototypes  */
  59. /************************/
  60.  
  61. extern struct ObjApp *creategui (void);
  62. extern void DisposeApp(struct ObjApp *);
  63.  
  64. #ifndef MAKE_ID
  65. #define MAKE_ID(a,b,c,d) ((ULONG) (a)<<24 | (ULONG) (b)<<16 | (ULONG) (c)<<8 | (ULONG) (d))
  66. #endif
  67.  
  68.  
  69.